import request from '@/utils/request'

// 查询专辑列表
export function listAlbums(query) {
  return request({
    url: '/albums/albums/list',
    method: 'get',
    params: query
  })
}

// 查询专辑详细
export function getAlbums(id) {
  return request({
    url: '/albums/albums/' + id,
    method: 'get'
  })
}

// 新增专辑
export function addAlbums(data) {
  return request({
    url: '/albums/albums',
    method: 'post',
    data: data
  })
}

// 修改专辑
export function updateAlbums(data) {
  return request({
    url: '/albums/albums',
    method: 'put',
    data: data
  })
}

// 删除专辑
export function delAlbums(id) {
  return request({
    url: '/albums/albums/' + id,
    method: 'delete'
  })
}
